
public class Sort {
	public static int[] sort(int[] a) {
		int i=0;
		int h;
		while (i<a.length-1){
			if (a[i]<a[i+1])
					i++;
			else{
				h = a[i+1];
				a[i+1] = a[i];
				a[i] = h;
				if(i>0)
					i--;
			}
		}
		return a;

	}
}
